import { defineConfig } from 'vitepress';

export default defineConfig({
  title: 'Vortex Admin',
  description: 'Vortex Admin Documentation',
  lang: 'zh-CN',
  base: '/docs/',
  lastUpdated: true,

  themeConfig: {
    logo: '/logo.svg',
    nav: [
      { text: '指南', link: '/guide/' },
      { text: '组件', link: '/components/' },
      { text: '工具函数', link: '/utils/' }
    ],

    sidebar: {
      '/guide/': [
        {
          text: '指南',
          items: [
            { text: '介绍', link: '/guide/' },
            { text: '快速开始', link: '/guide/getting-started' },
            { text: '项目配置', link: '/guide/configuration' },
            { text: '路由', link: '/guide/router' },
            { text: '状态管理', link: '/guide/store' },
            { text: '国际化', link: '/guide/i18n' },
            { text: '主题', link: '/guide/theme' }
          ]
        }
      ],
      '/components/': [
        {
          text: '组件',
          items: [
            { text: '介绍', link: '/components/' },
            { text: 'BaseTable', link: '/components/base-table' },
            { text: 'DrawerForm', link: '/components/drawer-form' },
            { text: 'StatusTag', link: '/components/status-tag' }
          ]
        }
      ],
      '/utils/': [
        {
          text: '工具函数',
          items: [
            { text: '介绍', link: '/utils/' },
            { text: '日期工具', link: '/utils/date' },
            { text: '数字工具', link: '/utils/number' },
            { text: '字符串工具', link: '/utils/string' },
            { text: '对象工具', link: '/utils/object' }
          ]
        }
      ]
    },

    socialLinks: [{ icon: 'github', link: 'https://github.com/your-username/your-repo' }],

    footer: {
      message: 'Released under the MIT License.',
      copyright: 'Copyright © 2024-present Your Name'
    }
  }
});
